package com.hong.shiro.service.impl;

import com.hong.shiro.dao.UserDao;
import com.hong.shiro.entity.User;
import com.hong.shiro.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author xiehongwei
 * @date 2022/02/11
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public User findByUsername(String username) {
        return userDao.findByUsername(username);
    }

    @Override
    public User findById(Integer id) {
        return userDao.findById(id);
    }
}
